﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Admin.master" AutoEventWireup="true" CodeFile="Integration.aspx.cs" Inherits="SY.WebSite.Web.View.Integration" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>列表管理 - 素币管理 - 后台管理系统 - <%= Settings.Title %></title>
    <link href="<%= Settings.StaticFileDomain %>/Scripts/util/jquery-pagination/lib/jquery_pagination/pagination.css" rel="stylesheet" type="text/css" />    
    <link href="<%= Settings.StaticFileDomain %>/Scripts/util/JqModal/JqPopU.css" rel="stylesheet" type="text/css" />
    <%--<link href="<%= Settings.StaticFileDomain %>/Scripts/util/ui.uapselector/skin/default/main.css" rel="stylesheet" type="text/css" />--%>
    <%--<script src="<%= Settings.StaticFileDomain %>/Scripts/util/My97DatePicker/WdatePicker.js" type="text/javascript"></script>--%>
    <script src="<%= Settings.StaticFileDomain %>/Scripts/util/template/trimpath-template.js" type="text/javascript"></script>
    <script src="<%= Settings.StaticFileDomain %>/Scripts/util/jquery-pagination/lib/jquery_pagination/jquery.pagination.js" type="text/javascript"></script>
    <%--<script src="<%= Settings.StaticFileDomain %>/Scripts/util/ui.uapselector/jquery.ui.uapselector.js" type="text/javascript"></script>--%>
    <script src="<%= Settings.StaticFileDomain %>/Scripts/util/JqModal/JqPopU.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" Runat="Server">
    <div>
	    <h1>
		    <small>素币管理</small>
	    </h1>
    </div>
    <form class="form-search">
        <fieldset>
	        工号/姓名：<input class="input-small" id="userName" type="text" placeholder="工号或姓名"/>&nbsp;&nbsp;
            所属部门：<input class="input-medium" id="deptName" type="text" placeholder="所属部门"/> 
            职位：<input class="input-small" id="jobName" type="text" placeholder="职位"/> 
            性别：
            <select id="gender" style="width:80px">
                <option value="100">全部</option>
                <option value="1">男</option>
                <option value="2">女</option>
                <option value="0">未知</option>
            </select>
            管理员：
            <select id="usertype" style="width:80px">
                <option value="200">全部</option>
                <option value="100">是</option>
                <option value="0">否</option>
            </select>
            <button type="button" class="btn" onclick="page.getUserList(0)">查询</button>
        </fieldset>
    </form>
    <div id="result"></div>
    <div id="pagination"></div>
    <textarea name="userList" id="userList" style="display:none;"> 
    <table class="table table-hover table-striped">
		<thead>
			<tr>
				<th>姓名（工号）</th><th>性别</th><th>所属部门</th><th>职位</th><th>管理员</th>
                <th>可用素币</th><th>特殊素币</th><th>已用素币</th><th>冻结素币</th><th>&nbsp;</th>
            </tr>
        </thead>
		<tbody>
            {for p in list}
			<tr>
                <td>@{p.UserName}<small>(@{p.JobNumber})</small></td>
                <td>{if p.Gender == 1}男{elseif p.Gender == 2}女{elseif}未知{/if}</td>
                <td>@{p.DeptName}</td>
                <td>@{p.JobName}</td>
                <td>{if p.UserType == 100}是{else}否{/if}</td>
                <td>@{p.Available}</td>
                <td>@{p.Honor}</td>
                <td>@{p.Used}</td>
                <td>@{p.Freeze}</td>
                <td>
                    <div class="btn-group">
                        <a class="btn" href="#">操作</a>
                        <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="javascript:void(0)" onclick="page.edit(1,'@{p.UserName}','@{p.JobNumber}',@{p.UserId})">分配可用素币</a></li>
                            <li><a href="javascript:void(0)" onclick="page.edit(2,'@{p.UserName}','@{p.JobNumber}',@{p.UserId})">扣除可用素币</a></li>
                            <li><a href="javascript:void(0)" onclick="page.edit(3,'@{p.UserName}','@{p.JobNumber}',@{p.UserId})">分配特殊素币</a></li>
                            <li><a href="javascript:void(0)" onclick="page.edit(4,'@{p.UserName}','@{p.JobNumber}',@{p.UserId})">扣除特殊素币</a></li>
                        </ul>
                    </div>
                </td>
			</tr>
            {forelse}
            <tr><td colspan="9">暂无相关数据</td></tr>
            {/for}
		</tbody>
	</table>
    </textarea>

    <script src="<%= Settings.StaticFileDomain %>/Scripts/page/admin/integration.js" type="text/javascript"></script>
</asp:Content>